<f:view xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
	<h:head />
	<h:body styleClass="icePortlet">
		<ui:include src="/xhtmlGenerales/styling.xhtml" />
		<ui:include src="/xhtmlGenerales/scripts.xhtml" />
		
		<ice:form id="porletViewMode">		
			<!-- Static Tab Set -->
			<ice:panelGroup id="tabSetTabs"
			                styleClass="panelTabSetContainer">			                
			    
			    <ice:panelTabSet id="icePnlTbSet"
			            selectedIndex="#{fcTabsPlantilla.focusIndex}"
			            tabPlacement="#{fcTabsPlantilla.tabPlacement}"
			            tabChangeListener="#{fcTabsPlantilla.processTabChange}"
			            summary="#{messages['summary.tabsMaestroPlantilla']}"
			            refresh="porletViewMode">
			            									     
			        <ice:panelTab rendered="#{fcTabsPlantilla.tabbedMaestroPlantillaVisible}"
			                      label="#{messages['titulo.tabsMaestroPlantilla']}"			                      
			                      title="#{messages['titulo.tabsMaestroPlantilla']}">
			            <div>
							<ui:include src="/xhtml/plantilla/plantillaForm.xhtml"/>
							<ice:panelGroup>
								<ice:panelCollapsible id="icePnlColFilterPlantilla" expanded="#{fcPlantilla.expFiltro}">
									<f:facet name="header">
										<ice:panelGroup>
											<ice:outputText value="#{messages['titulo.icePnlColFilterPlantilla']}"></ice:outputText>
										</ice:panelGroup>
									</f:facet>
									<ui:include src="/xhtml/plantilla/plantillaFilterForm.xhtml" />
								</ice:panelCollapsible>
								<ice:panelCollapsible id="icePnlColListPlantilla" expanded="#{fcPlantilla.expLista}">
									<f:facet name="header">
										<ice:panelGroup>
											<ice:outputText value="#{messages['titulo.icePnlColListPlantilla']}"></ice:outputText>
										</ice:panelGroup>
									</f:facet>
									<ui:include src="/xhtml/plantilla/plantillaDataList.xhtml" />
								</ice:panelCollapsible>
							</ice:panelGroup>
			            </div>
			        </ice:panelTab>	
			        <ice:panelTab rendered="#{fcTabsPlantilla.tabbedConfigurarPlantillaVisible}"
			                      label="#{messages['titulo.tabsConfigurarPlantilla']}"			                      
			                      title="#{messages['titulo.tabsConfigurarPlantilla']}">
					
						<ice:panelGroup styleClass="panelBorderContainer">
    						<ice:panelBorder id="configurarNodo"
    							styleClass="westCenter"
    							style="width:100%"                     			                     			
                     			renderWest="true"
                     			renderCenter="true">
                     			<f:facet name="west">
                     				<ui:include src="/xhtml/nodo/plantillaTree.xhtml"/>
                     			</f:facet>
								<f:facet name="center">
									<ui:include src="/xhtml/nodo/nodoForm.xhtml"/>
									<ui:include src="/xhtml/nodo/nodoDataList.xhtml" />
								</f:facet>
							</ice:panelBorder>
						</ice:panelGroup>
			        </ice:panelTab>		    	
			    </ice:panelTabSet>
			</ice:panelGroup>
		</ice:form>
	</h:body>
</f:view>